package com.ssh.action.petinfo;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.biz.IPetinfoBiz;
import com.ssh.entity.Petinfo;
@Controller
@Scope("prototype")
public class PetinfoDetailAction extends ActionSupport{
	private static final long serialVersionUID = 1L;
	@Resource
	private IPetinfoBiz iPetinfoBiz;
	private Petinfo petinfo;
	private int petId;
	
	public String execute(){
		
		petinfo = iPetinfoBiz.findPetByID(petId);
		return "success";
	}
	
	public Petinfo getPetinfo() {
		return petinfo;
	}
	public void setPetinfo(Petinfo petinfo) {
		this.petinfo = petinfo;
	}
	public IPetinfoBiz getiPetinfoBiz() {
		return iPetinfoBiz;
	}
	public void setiPetinfoBiz(IPetinfoBiz iPetinfoBiz) {
		this.iPetinfoBiz = iPetinfoBiz;
	}

	public int getPetId() {
		return petId;
	}

	public void setPetId(int petId) {
		this.petId = petId;
	}
	
}
